package ZuoYe2_TiaoJianJieGou2_0417;

import java.util.Scanner;

public class ZuoYe2_SanGeShu {

	public static void main(String[] args) {
		// 2:输入三个数，按照从小到大的方式输出三个数
		Scanner input = new Scanner(System.in);
		System.out.println("请输入数字a");
		double a = input.nextDouble();
		System.out.println("请输入数字b");
		double b = input.nextDouble();
		System.out.println("请输入数字c");
		double c = input.nextDouble();
//		a>b>c
		if (a >= b && b >= c) {
			System.out.println(c + "≤" + b + "≤" + a);
//		a>c>b	
		} else if (a >= c && c >= b) {
			System.out.println(b + "≤" + c + "≤" + a);
//		b>a>c	
		} else if (b >= a && a >= c) {
			System.out.println(c + "≤" + a + "≤" + b);
//		b>c>a	
		} else if (b >= c && c >= a) {
			System.out.println(a + "≤" + c + "≤" + b);
//		c>a>b	
		} else if (c >= a && a >= b) {
			System.out.println(b + "≤" + a + "≤" + c);
//		c>b>a	
		} else if (c >= b && b >= a) {
			System.out.println(a + "≤" + b + "≤" + c);
		} 
	}

}
